import React, { Component } from 'react'
import "./second.css";
//导入Link组件
import {Link} from "react-router-dom"; 
export default class Second extends Component {
  render() {
    return (
      <div className="second">
          <div className="links">
              <Link to="/second/model1">模块1</Link>
              <Link to="/second/model2">模块2</Link>
              <Link to="/second/model3">模块3</Link>
          </div>
          <div className="content">{this.props.children}</div>
      </div>
    )
  }
  componentDidMount(){
    console.log('组件挂载');
  }
  componentWillUnmount(){
    console.log('组件卸载');
  }
}
